#ifndef _SETTING_SCENE_H_
#define _SETTING_SCENE_H_

#include <iostream>
#include "cocos2d.h"
#include "cocos-ext.h"
USING_NS_CC;
USING_NS_CC_EXT;

class SettingsScene : public cocos2d::CCLayer
{
public:
	// Init enum Slider
	enum SLIDER { SOUND, MUSIC };

    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
    virtual bool init();
    
    // there's no 'id' in cpp, so we recommend returning the class instance pointer
    static cocos2d::CCScene* scene();
    
    // a selector callback
    void menuCloseCallback(CCObject* pSender);

	// Init slider sound and music
	void initSlider();
	void initSliderLabel();
	void valueChanged(CCObject *sender, CCControlEvent controlEvent);
    
    // implement the "static node()" method manually
    CREATE_FUNC(SettingsScene);
};

#endif
